package com.fivefu.core.skyeye.event.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fivefu.core.skyeye.event.entity.DbAiSceneCamera;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 探头场景关联表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2022-07-15 13:53:19
 */
public interface DbAiSceneCameraMapper extends BaseMapper<DbAiSceneCamera> {

    /*//查询探头场景关联表中开启的探头编号
    List<String> queryOpenCamera(@Param("codeList") List<String> codeList);*/
    //查询场景下开启的探头唯一标识
    List<String> getCamera(@Param("sceneList") List<String> sceneList);

    //查询切片机器数量信息
    List<Map<String,Object>> getSliceNodeCount();

    //查询识别机器数量信息
    List<Map<String,Object>> getEventNodeCount();


    Integer getSliceNodeNum(@Param("sliceId") Long sliceId);

    Integer getEventNodeNum(@Param("eventId") Long eventId);
}
